package com.kuang.login.model;
import com.alibaba.druid.util.StringUtils;

public class User {

    private String username;

    private String password;

    private String gender;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 注册的用户如果出现用户名、密码或者性别任意一项为空，那么就表示为空
     * @return
     */
    public boolean isEmpty() {
        if(StringUtils.isEmpty(this.username) || StringUtils.isEmpty(this.password) || StringUtils.isEmpty(this.gender)){
            return true;
        }
        return false;
    }
}
